{
  "properties" : { },
  "id" : "bd53eae11e684a908f3ec7e602312e93",
  "script" : null,
  "groupId" : "e7c57e1086a64d09a8c9d615ca57f6fd",
  "name" : "草稿箱",
  "createTime" : 1727071197186,
  "updateTime" : 1726713652201,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "getSave",
  "method" : "GET",
  "parameters" : [ {
    "name" : "id",
    "value" : "1801438871628578818",
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": {\n        \"records\": [\n            {\n                \"id\": \"1801438871628578818\",\n                \"deviceId\": \"D7361718595949981737\",\n                \"location\": \"rom:/\",\n                \"filename\": \"startup.cfg\",\n                \"content\": \"测试\",\n                \"updateTime\": \"2024-06-14T10:17:50.769\",\n                \"md5Digest\": \"\"\n            }\n        ],\n        \"total\": 0,\n        \"size\": 10,\n        \"current\": 1,\n        \"orders\": [],\n        \"optimizeCountSql\": true,\n        \"hitCount\": false,\n        \"countId\": \"\",\n        \"maxLimit\": -1,\n        \"searchCount\": true,\n        \"pages\": 0\n    }\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import com.kd.ndmp.core.excel.NetDeviceCfgFileVO
import org.springframework.beans.BeanUtils;
import java.util.stream.Collectors;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

sql = """ 
    select * from ndmp_net_device_cfg_file where flag = #{id}
 """
pages = db.page(sql)
List collect = pages.records.stream().map(result -> {
    NetDeviceCfgFileVO netDeviceCfgFileVO = new NetDeviceCfgFileVO();
    BeanUtils.copyProperties(result, netDeviceCfgFileVO);
    file = result.file;
    String content = new String(file);
    netDeviceCfgFileVO.setId(result.id);
    netDeviceCfgFileVO.setDeviceId(result.deviceId);
    netDeviceCfgFileVO.setLocation(result.location);
    netDeviceCfgFileVO.setFilename(result.filename);
    netDeviceCfgFileVO.setUpdateTime(result.updateTime.toLocalDateTime());
    netDeviceCfgFileVO.setMd5Digest(result.md5Digset);
    netDeviceCfgFileVO.setContent(content);
    return netDeviceCfgFileVO;}).collect(Collectors.toList());
Page voPage = new Page();
BeanUtils.copyProperties(pages,voPage);
voPage.setRecords(collect);
voPage.setTotal(collect.size())
return voPage